package com.example.hibernate.program;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "MOTO_CYCLE")
@DiscriminatorValue(value = "MOTO")
public class MotoCycle extends TwoWheeler {

	private int gearCount;

	@Column(name = "GEAR_COUNT")
	public int getGearCount() {
		return gearCount;
	}

	public void setGearCount(int gearCount) {
		this.gearCount = gearCount;
	}
}
